<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<title>去保养-有人情味的保养</title>
    <meta name="keywords" content="去保养,汽车保养,汽车配件,汽车维修,养车,4S店品质,氦修驿站" />
    <meta name="description" content="上门取车保养、保养在线观看、咖啡馆里做保养、夜间保养" />
	<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/css/base.css">
	<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/mobile/css/master.css">
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?11ad56ca0738ac14d150a362fca3e058";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>


</head>
<body>
	<header>
        <a href="{:C('WEB_URL')}mobile/city" class="city"><eq name="_SESSION['location']" value="3301">杭州<else />上海</eq><i>&#xe604;</i></a>
		<a href="tel:4006730088" class="tel iconfont">&#xe60c;</a>
		<a href="javascript:void(0)" class="menu iconfont" onclick="home.showMenu()">&#xe602;</a>
		<img src="{:C('WEB_URL')}Public/mobile/images/logo.png" id="logo">
	</header>

	<include file="Public/mobileHome" />
    <eq name="_SESSION['location']" value="3301">
        <style>
            #fourModel{margin:0 10px;background:#fff; padding-bottom:16px;}
            #fourModel.init{ position:absolute;top:165px;}
            #fourModel h3{font-size:16px;font-weight:500;margin-bottom:5px;padding-top:10px;height:50px;}
            #fourModel h3 p{line-height:20px;display:inline-block;margin-top:15px;}
            #fourModel h3 p span{font-size:13px;display:block;}
            #fourModel h3 p em{color:#f60;}
            #fourModel h3 img{width:48px;margin:6px 10px 6px 6px;float:left;}

            #fourModel h3 .map{float:left;margin-top:12px;}
            #fourModel h3 .map i{color:#3EB7E9;font-size:26px;}

            #fourModel .fourModelBtn li{float:left;line-height:56px;width:49%;font-size:15px;}
            #fourModel .fourModelBtn li a{color:#444;}
            #fourModel .fourModelBtn li:nth-child(1){border-right:1px solid #eee;border-bottom:1px solid #eee;}
            #fourModel .fourModelBtn li:nth-child(2){border-bottom:1px solid #eee;}
            #fourModel .fourModelBtn li:nth-child(3){border-right:1px solid #eee;}
            #fourModel .fourModelBtn li i{float:left;margin-left:5px;width:30px;height:30px;border-radius:15px;line-height:30px;background:#F17446;color:#fff;font-size:18px;text-align:center;margin-top:13px;margin-right:6px;}
            #fourModel .fourModelBtn li:nth-child(2) i{background:#EABD44;}
            #fourModel .fourModelBtn li:nth-child(3) i{background:#F9A25C;}
            #fourModel .fourModelBtn li:nth-child(4) i{background:#3EB7E9;}
            
            #fourModel .fourModelMain{width:100%;visibility: hidden; position:fixed;top:0px;left:0px;height:100%;z-index:10;}
            #fourModel .fourModelMain .bg{position:absolute;top:0px;left:0px;width:100%;height:100%;background:rgba(0,0,0,0.6);z-index:1;}

            #fourModel .fourModelMain .fourModelItem{background:#fff;height:400px;border-radius:6px;overflow:hidden;width:280px; position:absolute;top:50%;left:50%;z-index:10;margin-left:-140px;margin-top:-200px;}
            #fourModel .fourModelMain h4{background:#f9f9f9;line-height:50px;font-size:16px;font-weight:500;text-align:center;border-radius:6px;}
            #fourModel .fourModelMain video{height:180px;width:100%;}

            #fourModel .fourModelMain .txt{text-align:center;font-size:16px;line-height:25px;width:200px;border-bottom:3px solid #f60;margin:auto;padding-bottom:10px;}
            #fourModel .fourModelMain video,#fourModel .fourModelMain img{margin-bottom:20px;}
            #fourModel .fourModelMain li{height:370px;font-size:16px;width:280px;float:left;}
            #fourModel .fourModelMain li img{width:100%;}
            #fourModel .fourModelMain div.current{text-align:center;}
            #fourModel .fourModelMain div.current i{color:#ccc;font-size:16px;}
            #fourModel .fourModelMain div.current span.selected i{color:#f60;}
            .pay .txt{display:none;}
        </style>
        
        <div id="fourModel" >
            <h3>     
                <a href="{:C('WEB_URL')}mobile/map/" class="map"><i>&#xe622;</i></a>
                <img src="{:C('WEB_URL')}Public/mobile/images/fourT.png" />
                <p>去保养杭州萧杭路店<span style="display:none">小保养服务费：<em class="price">150元</em></span></p>
            </h3>
            <ul class="fourModelBtn clearfix">
                <li><a href="{:C('WEB_URL')}mobile/live"><i>&#xe61f;</i>保养在线观看</a></li>
                <li onclick="fourDot.showModel(1)"><i>&#xe621;</i>咖啡馆做保养</li>
                <li onclick="fourDot.showModel(2)"><i>&#xe620;</i>上门取车保养</li>
                <li onclick="fourDot.showModel(3)"><i>&#xe61e;</i>下班夜间保养</li>
            </ul>
            <div class="fourModelMain">
                <div class="bg" onclick="fourDot.hideModel()"></div>
                <div class="fourModelItem">
                    <ul class="clearfix">
                        <li>
                            <h4>咖啡馆里做保养</h4>
                            <img src="{:C('WEB_URL')}Public/mobile/images/model2.jpg" />
                            <p class="txt">咖啡馆里下午茶<br />爱车状况全部查!</p>
                        </li>
                        <li>
                            <h4>上门取车保养</h4>
                            <img src="{:C('WEB_URL')}Public/mobile/images/model3.jpg" />
                            <p class="txt">保养省时更省力<br />一通电话全搞定!</p>
                        </li>
                        <li>
                            <h4>下班夜间保养</h4>
                            <img src="{:C('WEB_URL')}Public/mobile/images/model4.jpg" />
                            <p class="txt">白天上班忙成狗<br />晚上保养不用愁!</p>
                        </li>
                   </ul>
                   <div class="current">
                        <span class="selected"><i>&#xe61d;</i></span>
                        <span><i>&#xe61d;</i></span>
                        <span><i>&#xe61d;</i></span>
                    </div>
                    <a href="javascript:void(0)" class="prev"></a>
                    <a href="javascript:void(0)" class="next"></a>
                </div>
            </div>
            <script type="text/javascript" src="{:C('WEB_URL')}Public/js/carousel.js"></script>
            <script>
                var fourDot={
                    comment:null,
                    main:$(".fourModelMain"),
                    init:function(){
                        this.comment=new carousel({
                            "dir":"left",
                            "main":"#fourModel div.fourModelItem",
                            "next":"#fourModel a.next",
                            "prev":"#fourModel a.prev",
                            "moveVal":$(".fourModelItem").width(),
                            "list":"#fourModel div.current",
                            "res":false,
                            "auto":false
                        });
                    },
                    showModel:function (i){
                        window.scrollTop=$("body").scrollTop();
                        $("body").addClass("overflow-H");
                        i--;
                        this.comment.index=i;
                        this.main.css("visibility","visible");
                        this.main.find("ul").css("marginLeft","-"+280*i+"px");
                        this.main.find("span").eq(i).addClass("selected").siblings("span").removeClass("selected");
                    },
                    hideModel:function(){
                        $("body").removeClass("overflow-H").scrollTop(window.scrollTop);
                        this.main.css("visibility","hidden");
                    }
                }
                
                fourDot.init();
                
                function chooseCompany(t){
                    var id=$(t).attr("data-wxId");
                    t=$(t);
                    if(t.hasClass('selected')){
                        t.removeClass("selected");
                        $("#J_wx_id").val(id);
                        $("#J_btnGoStep1").html("立即预约");
                    }else{
                        t.addClass("selected");
                        $("#J_wx_id").val("");
                        $("#J_btnGoStep1").html("立即下单");
                    }
                    chooseGoods.getTotalPrice();
                }
            </script>
        </div>

    </eq>
	<menu>
        <ul>
            <li onclick="chooseGoods.toServer(1)" data-jyId="{$jiyou[0]['pj_id']}" data-jvId="{$jilv[0]['pj_id']}">
                <div>
                    
                    <p>查看<br />我的车型</p>
                    <i class="selected">&#xe60e;</i>
                    <i class="arrow">&#xe60d;</i>
                </div>
            </li>
            <li class="current" onclick="chooseGoods.toServer(2)"  data-jyId="{$jiyou[1]['pj_id']}" data-jvId="{$jilv[0]['pj_id']}">
                <div>
                    <i class="auto">&#xe60b;</i>
                    <p><span>大众型套餐</span><br />15~30万车型</p>
                    <i class="selected">&#xe60e;</i>
                    <i class="arrow">&#xe60d;</i>
                </div>
            </li>
            <li onclick="chooseGoods.toServer(3)"  data-jyId="{$jiyou[2]['pj_id']}" data-jvId="{$jilv[0]['pj_id']}">
                <div>
                    <i class="auto">&#xe60b;</i>
                    <p><span>经济型套餐</span><br />15万以下车型</p>
                    <i class="selected">&#xe60e;</i>
                    <i class="arrow">&#xe60d;</i>
                </div>
            </li>
            <li onclick="chooseGoods.toServer(4)"  data-jyId="{$jiyou[3]['pj_id']}" data-jvId="{$jilv[0]['pj_id']}">
                <div>
                    <i class="auto">&#xe60b;</i>
                    <p><span>豪华型套餐</span><br />30万以上车型</p>
                    <i class="selected">&#xe60e;</i>
                    <i class="arrow">&#xe60d;</i>
                </div>
            </li>
        </ul>
    </menu>

    <div class="carInfo">
        <empty name="auto">
            <p><a href="{:U('step1')}?choose=true&back=home">选择车型 &gt;</a></p>
            <else />
            <p>{$auto['brand_name']} {$auto['model_name']} {$auto['model_pl']} {$auto['model_year']} <a href="{:U('step1')}?choose=true&back=home">更换 &gt;</a></p>
        </empty>
        <span id="J_valueJY" class="hide">{$auto['capacity']}</span>
    </div>

    <div class="server">
        <h4>
        <eq name="_SESSION['location']" value="3301">
        <a href="javascript:void(0)" class="select" onclick="chooseCompany(this)" data-wxId="441">
            <i>&#xe601;</i><em>只买配件</em>
        </a>
        </eq>
        <i>&#xe623;</i>自助保养</h4>
        <div class="serverMain clearfix" style="margin-left:-100%;">
            <volist name="jiyou" id="vo" key="i">
                <div class="menuList" id="J_level{$i-1}">
                    <ul>
                        <li onclick="chooseGoods.showList('#J_goodsListJY')" data-id="{$vo['pj_id']}">
                            <a href="javascript:void(0)" class="iconfont more">&#xe603;</a>
                            <img src="http://app2.haixiuyizhan.com/{$vo['logo']}" alt="">
                            <p class="name">{$vo['pj_name']}&nbsp;{$vo['weight']}L*1</p>
                            <p class="price"><em class="J_price">￥{$vo['pj_csprice']}</em> <span>￥{$vo['pj_scprice']}</span></p>
                        </li>
                        <li data-id="{$jilv['pj_id']}">
                            <img src="http://app2.haixiuyizhan.com/{$jilv['logo']}" alt="">
                            <p class="name">{$jilv['pj_pinpai']}&nbsp;{$jilv['pj_xinghao']}</p>
                            <p class="price">
                                <php>if($jilv['pj_id']==278&&!empty($_SESSION['order']['model_id'])){</php>
                                    <em class="J_price">暂时缺货</em>
                                <php>}else{</php>
                                    <em class="J_price">￥{$jilv['pj_csprice']}</em>
                                    <span>￥{$jilv['pj_scprice']}</span>
                                <php>}</php>
                            </p>
                        </li>
                    </ul>
                    
                    <div class="other">
                        <gt name="auto['capacity']" value="4">
                        <p class="other"><i>&#xe611;</i>您的爱车排量较高，还需要额外增加<em>{$auto['capacity']-4}L</em>机油</p>
                        </gt>
                        <if condition="($auto['capacity']-4) egt 4">
                            <div class="otherMain" data-id="{$vo['pj_id']}">
                                <img src="http://app2.haixiuyizhan.com/{$vo['logo']}" alt="">
                                
                                <p class="name">
                                {$vo['pj_name']} {$vo['weight']}L
                                <span>×<php>echo floor(($auto['capacity']-4)/4);</php></span>
                                </p>
                                <p class="price">
                                    <em class="J_price">￥{$vo['pj_csprice']*floor(($auto['capacity']-4)/4)}</em>
                                    <span>￥{$vo['pj_scprice']*floor(($auto['capacity']-4)/4)}</span>
                                </p>
                            </div>
                        </if>
                        <if condition="($auto['capacity']%4) gt 0">
                            <div class="otherMain" data-id="{$jiyouOne[$i-1]['pj_id']}">
                                <img src="http://app2.haixiuyizhan.com/{$jiyouOne[$i-1]['logo']}" alt="">
                                <p class="name">{$jiyouOne[$i-1]['pj_name']} <span>{$jiyouOne[$i-1]['weight']}L*{$auto['capacity']%4}</span></p>
                                <p class="price">
                                    <em class="J_price">￥{$jiyouOne[$i-1]['pj_csprice']*($auto['capacity']%4)}</em>
                                    <span>￥{$jiyouOne[$i-1]['pj_scprice']*($auto['capacity']%4)}</span>
                                </p>
                            </div>
                        </if>
                    </div>
                </div>
            </volist>
        </div>
        <form action="{:U('step1')}" method="get" id="J_myForm">
            <input type="hidden" name="jyId" value="{$jiyou[1]['pj_id']}" id="J_jyId"/>
            <input type="hidden" name="jvId" value="{$jilv['pj_id']}" id="J_jvId"/>
            <input type="hidden" name="otherId" value="" id="J_otherId"/>
            <input type="hidden" name="price" value="" id="J_totalPrice"/>
            <input type="hidden" name="priceJY" value="" id="J_priceJY"/>
            <input type="hidden" name="wx_id" value="441" id="J_wx_id"/>
        </form>
    </div>
    
    <p class="line mt20"></p>
    <div class="zhoubian">
        <h4><i>&#xe624;</i>去保养特价优惠</h4>
        <ul>
            <li data-id="2">
                <!-- <em class="fright" style="  font-size: 24px;color: #999;margin: 10px 30px 0 0;">已售罄</em> -->
                <em class="fright" style="background:url(/Public/mobile/images/shouqing.png) no-repeat;background-size:100% 100%;width:78px;height:60px;margin: -5px 6px 0 0;"></em>
                <img src="http://app2.haixiuyizhan.com/Uploads/Product/logo/m_jhq.jpg">
                <p class="name">豪捷H7太阳能空气净化器</p>
                <p class="price">
                    <em class="J_price">￥228</em>
                    <span>￥536</span>
                </p>
            </li>
        </ul>
    </div>
    <neq name="_SESSION['location']" value="3301">
	   <footer>
          <img src="{:C('WEB_URL')}Public/mobile/images/foot.png" width="100%">
	   </footer>
    </neq>

    <p style="height:55px;background:#F4F4F4"></p>
    <div class="pay">
        <div class="index"></div>
        <a href="javascript:void(0)" id="J_btnGoStep1">立即预约</a>
    </div>

    <div class="dialog goodsList" id="J_goodsListJY">
        <div class="bg" onclick="chooseGoods.hideList('#J_goodsListJY')"></div>
        <div class="dialog-content">
            <div class="dialog-tit clearfix">
                选择机油
                <a href="javascript:void(0)" class="close" onclick="chooseGoods.hideList('#J_goodsListJY')">×</a>

            </div>
            <div class="content">
                <ul>
                    <volist name="jiyouFour" id="vo">
                    <li onclick="chooseGoods.chooseJY({$vo['pj_id']},this)" <eq name="vo['pj_id']" value="$jiyouDef4['pj_id']"> class="current" </eq>>
                        <img src="http://app2.haixiuyizhan.com/{$vo['logo']}" />
                        <p class="name">{$vo['pj_name']}</p>
                        <p class="price">
                            ￥{$vo['pj_csprice']}
                            <span>￥{$vo['pj_scprice']}</span>
                            <em>每升:￥{$vo['pj_csprice']/4|round}</em>
                        </p>
                    </li>
                    </volist>
                </ul>
            </div>
        </div>
    </div>
    

    <script>
        var autoId=getQuery("autoId")?getQuery("autoId"):"{$_SESSION['order']['model_id']}";

        $(function(){
            var menuIndex="{$_SESSION['order']['menuIndex']}";
            if(getQuery("autoId")!=null){
                $("menu").find("li").eq(0).click();
            }else if(menuIndex!=""){
                $("menu").find("li").eq(menuIndex).click();
            }

            if(typeof fourDot=="undefined"){
                $("#J_btnGoStep1").html("立即下单");
            }

        })

    </script>
    <script type="text/javascript" src="{:C('WEB_URL')}Public/mobile/js/chooseGoods.js"></script>
    <script>
        chooseGoods.couponStatus="{$already['status']}";
        chooseGoods.couponMoney="{$already['rand_money']}";
        chooseGoods.init();
    </script>
</body>
</html>